import api from './index'
// import qs from 'qs'
// axios
import request from '@/utils/request'

/**
 * 直播(时间段)选手列表
 * @param data
 * @returns {*}
 */
export function liveCompetitor(data) {
  return request({
    url: api.Livecompetitor,
    method: 'get',
    params: data,
    hideloading: true
  })
}

/**
 * 直播详情
 * @param params
 * @returns {*}
 */
export function liveInfo(params) {
  return request({
    url: api.LiveInfo,
    method: 'get',
    params,
    hideloading: true
  })
}

/**
 * 给选手点赞
 * @param params
 * @returns {*}
 */
export function uplike(params) {
  return request({
    url: api.Uplike,
    method: 'post',
    data: params,
    hideloading: true
  })
}

/**
 * 回放列表
 * @param params
 * @returns {*}
 */
export function playbacks(params) {
  return request({
    url: api.Playbacks,
    method: 'get',
    params,
    hideloading: true
  })
}

/**
 * 回放列表
 * @param params
 * @returns {*}
 */
export function hotRank(params) {
  return request({
    url: api.HotRank,
    method: 'get',
    params,
    hideloading: true
  })
}
/**
 * 直播封面
 * @param params
 * @returns {*}
 */

export function getCoverimage() {
  return request({
    url: api.Coverimage,
    method: 'get',
    hideloading: true
  })
}
